// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.content.Intent;
import android.text.TextUtils;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.AutoCompleteTextView;
import com.nnee.p_b.p_a.cls_d;
import com.nnee.p_pr.p_activity.p_a.cls_al;
import com.nnee.p_pr.p_atom.cls_u;
import com.nnee.p_pr.p_d.cls_c;
import java.util.HashMap;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            MallListActivity, MainGridActivity, SearchActivity, PRISActivityWBSetting

class cls_ch
    implements android.view.View.OnClickListener
{

	cls_ch(cls_MallListActivity malllistactivity)
    {
		super();
        a = malllistactivity;
        
    }

    public void onClick(View view)
    {
        int i;
        com.nnee.p_pr.p_activity.p_view.cls_c c1;
        i = 0;
        c1 = null;
        switch(view.getId())
        {
        case 2131558409:
        	
            if(!cls_d.h().i())
                i = 1;
            cls_MainGridActivity.a(a.d, i, 1);
            
        	break;
        case 2131558515:
        	cls_MallListActivity.b(a).setText("");
        	break;
        case 2131558516:
        	android.os.IBinder ibinder = cls_MallListActivity.b(a).getWindowToken();
            com.nnee.p_pr.p_activity.cls_MallListActivity.c(a).hideSoftInputFromWindow(ibinder, 0);
            if(cls_MallListActivity.b(a).getText().toString().length() > 0 && !TextUtils.isEmpty(com.nnee.p_pr.p_activity.cls_MallListActivity.d(a)))
            {
                Intent intent = new Intent("android.intent.action.SEARCH");
                intent.setClass(a.getApplication(), com.nnee.p_pr.p_activity.cls_SearchActivity.class);
                intent.putExtra("query", cls_MallListActivity.b(a).getText().toString());
                intent.putExtra("extra_link", com.nnee.p_pr.p_activity.cls_MallListActivity.d(a));
                a.startActivityForResult(intent, 4097);
                cls_c.a(a.p(), 1697, cls_MallListActivity.b(a).getText().toString());
            }
        	break;
        case 2131558526:
        	c1 = (com.nnee.p_pr.p_activity.p_view.cls_c)view.getTag();
            while(c1 != null) 
            {
                cls_u u1 = (cls_u)cls_MallListActivity.e(a).getItem(c1.b);
                if(u1 == null)
                    break;
                int j;
                if(u1.ak())
                {
                    j = cls_MallListActivity.a(a, 303, u1, null, null);
                    cls_c.a(a.p(), 1703, u1.U());
                } else
                {
                    if(!u1.al() || cls_PRISActivityWBSetting.a(a, u1.be()))
                        break;
                    j = cls_MallListActivity.a(a, 302, u1, null, null);
                    cls_c.a(a.p(), 1702, u1.U());
                }
                cls_MallListActivity.f(a).put(new Integer(j), u1.V());
                break;
            }
        	break;
        default:
        	break;
        }
      
    }

    final cls_MallListActivity a;
}
